//
//  LZCouponPresenter.h
//  laziz_Consumer
//
//  Created by xbnzd on 16/11/19.
//  Copyright © 2016年 XBN. All rights reserved.
//


//***********************
//==========优惠券相关======
//***********************

#import <Foundation/Foundation.h>
@class LZGrabCouponAndFightGroupsDetialModel;

typedef void(^SuccessBlock)(LZGrabCouponAndFightGroupsDetialModel *model);
typedef void(^FailedBlock)(NSString *remind);

@interface LZCouponPresenter : NSObject

#pragma mark -
#pragma mark 抢券详情或者团购详情

/**
 获取抢券或者拼团详情
 
 @param videoId 视频id
 @param successBlock 成功
 @param failedBlock 失败
 */
+ (void)getGrabCouponOrFightGroupsDetailWithVideoID:(NSString *)videoId ResultSuccess:(SuccessBlock)successBlock ResultFailed:(FailedBlock)failedBlock;

/**
 根据抢卷或拼团id获取优惠详细信息 根据抢卷或拼团id获取优惠详细信息（type 1 优惠卷，type 2 团购）
 
 @param videoId <#videoId description#>
 @param type <#type description#>
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getMessageCenterTypeGrabCouponOrFightGroupsDetailWithVideoID:(NSString *)videoId andType:(NSString *)type ResultSuccess:(SuccessBlock)successBlock ResultFailed:(FailedBlock)failedBlock;

/**
 抢券接口

 @param sellerId 商户ID
 @param promotionId 优惠ID
 @param restaurantName 餐厅名称
 @param successBlock <#successBlock description#>
 */
+ (void)grabCouponWithSellerID:(NSString *)sellerId PromotionID:(NSString *)promotionId RestaurantName:(NSString *)restaurantName ResultSuccess:(void(^)(void))successBlock ResultFailed:(FailedBlock)failedBlock;


#pragma mark -
#pragma mark 使用优惠券
/**
 提交使用优惠券
 
 @param couponId 已抢优惠券id
 @param promotionId 优惠id
 @param successBlock 成功
 @param failedBlock 失败
 */
+ (void)useCouponWithCouponID:(NSString *)couponId PromotionID:(NSString *)promotionId ResultSuccess:(void(^)(void))successBlock ResultFailed:(FailedBlock)failedBlock;

@end
